package com.rfid.system.service;

import java.util.List;
import java.util.Map;

import com.rfid.system.domain.TOrderTotal;
import com.rfid.system.domain.response.OrderInfoResponseVO;

/**
 * 单据总Service接口
 *
 * @author fangchen
 * @date 2020-12-24
 */
public interface ITOrderTotalService {
    /**
     * 查询单据总
     *
     * @param id 单据总ID
     * @return 单据总
     */
    public TOrderTotal selectTOrderTotalById(Long id);

    /**
     * 查询单据总列表
     *
     * @param tOrderTotal 单据总
     * @return 单据总集合
     */
    public List<TOrderTotal> selectTOrderTotalList(TOrderTotal tOrderTotal);

    /**
     * 新增单据总
     *
     * @param tOrderTotal 单据总
     * @return 结果
     */
    public int insertTOrderTotal(TOrderTotal tOrderTotal);

    /**
     * 修改单据总
     *
     * @param tOrderTotal 单据总
     * @return 结果
     */
    public int updateTOrderTotal(TOrderTotal tOrderTotal);

    /**
     * 批量删除单据总
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTOrderTotalByIds(String ids);

    /**
     * 删除单据总信息
     *
     * @param id 单据总ID
     * @return 结果
     */
    public int deleteTOrderTotalById(Long id);

    OrderInfoResponseVO selectOrderInfo(String orderNo);

    List<Map<String, Object>> getProductInfo(String orderNo);

    TOrderTotal getLastData();

    String importUser(List<TOrderTotal> cusList, boolean updateSupport, String operName);
}
